// 查看流程图
function viewTraceNode(id) {
    bootbox.confirm({
        title: "操作提示",
        size: "small",
        message: "你确定要查看选择的数据吗？",
        callback: function (result) {
            if (result) {
                $.ajax({
                    type: "GET",
                    cache: false,
                    url: "/admin/processInstance/trace/" + id,
                    contentType: "application/x-www-form-urlencoded;charset=utf-8",
                    dataType: "json",
                    success: function (result) {
                        $("#ImageTracePic").empty();
                        //将图片的Base64编码设置给src
                        $("#ImageTracePic").attr("src","data:image/png;base64,"+result);
                        $('#ImgTraceModal').modal({
                            keyboard : false,
                            show     : true
                        });
                    }, error: function (result) {
                        new $.zui.Messager('提示消息：' + result.errorText, {
                            icon: 'exclamation-sign',
                            type: 'danger',
                            time: 2000
                        }).show();
                    }
                });
            }
        }
    });
}